import request from '@/utils/request'

// 新增 网格
export function addGuserArea(data) {
    return request({
        url: '/guser/area/add',
        method: 'post',
        data: data
    })
}

// 修改 网格
export function editGuserArea(data) {
    return request({
        url: '/guser/area/edit',
        method: 'post',
        data: data
    })
}

// 删除网格
export function delGridArea(gridAreaId) {
    return request({
        url: `/guser/area/del/${gridAreaId}`,
        method: 'get'
    })
}

// 新增 网格
export function addGuser(data) {
    return request({
        url: '/guser/add',
        method: 'post',
        data: data
    })
}


// 新增 网格
export function editGuser(data) {
    return request({
        url: '/guser/edit',
        method: 'post',
        data: data
    })
}

// 删除网格员
export function delGrid(gridUserId) {
    return request({
        url: `/guser/del/${gridUserId}`,
        method: 'get'
    })
}

// 网格列表
export function guserAreaList() {
    return request({
        url: '/guser/area/list',
        method: 'get'
    })
}